package org.seckill.entity;

import java.util.Date;

public class SeckillSuccess {
	private long seckillId;
	
	private long userPhone;
	private short state;
	private Date crateDate;
	
	//以多对一
	private Seckill seckill;
	
	
	public long getSeckillId() {
		return seckillId;
	}


	public void setSeckillId(long seckillId) {
		this.seckillId = seckillId;
	}


	public long getUserPhone() {
		return userPhone;
	}


	public void setUserPhone(long userPhone) {
		this.userPhone = userPhone;
	}


	public short getState() {
		return state;
	}


	public void setState(short state) {
		this.state = state;
	}


	public Date getCrateDate() {
		return crateDate;
	}


	public void setCrateDate(Date crateDate) {
		this.crateDate = crateDate;
	}


	public Seckill getSeckill() {
		return seckill;
	}


	public void setSeckill(Seckill seckill) {
		this.seckill = seckill;
	}


	@Override
	public String toString() {
		return "SeckillSuccess [seckillId=" + seckillId + ", userPhone=" + userPhone + ", state=" + state
				+ ", crateDate=" + crateDate + "]";
	}
	
	
}
